package com.zzt.blog.common.exception;

import lombok.Data;

/**
 * Created with IntelliJ IDEA.
 * Description
 * User: panda
 * Date: 2025-04-02
 * Time: 15:23
 */
@Data
public class BlogException extends RuntimeException{
    private int code;
    private String errMsg;

    public BlogException(String errMsg, int code) {
        this.errMsg = errMsg;
        this.code = code;
    }

    public BlogException(String errMsg) {
        this.errMsg = errMsg;
    }
}
